﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<UI.Data.Persona>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Registrarse
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Registrarse</h2>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(false) %>

    <fieldset>
        <legend>Persona</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Nombre) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Nombre)%>
            <%: Html.ValidationMessageFor(model => model.Nombre)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Apellido)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Apellido)%>
            <%: Html.ValidationMessageFor(model => model.Apellido)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Tel__Particular)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Tel__Particular)%>
            <%: Html.ValidationMessageFor(model => model.Tel__Particular)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Tel__Celuar)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Tel__Celuar)%>
            <%: Html.ValidationMessageFor(model => model.Tel__Celuar)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Calle)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Calle)%>
            <%: Html.ValidationMessageFor(model => model.Calle)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.NumeroCalle)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.NumeroCalle)%>
            <%: Html.ValidationMessageFor(model => model.NumeroCalle)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.DNI)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.DNI)%>
            <%: Html.ValidationMessageFor(model => model.DNI)%>
        </div>

        <div class="editor-label">
            <%: Html.Label("Nombre de Usuario:")%>
        </div>
        <div class="editor-field">
            <%: Html.Editor("username")%>
        </div>

        <div class="editor-label">
            <%: Html.Label("Contraseña")%>
        </div>
        <div class="editor-field">
            <%: Html.TextBox("pass", null, new { type = "password" })%>
        </div>

        <div class="editor-label">
            <%: Html.Label("Email")%>
        </div>
        <div class="editor-field">
            <%: Html.TextBox("email")%>
        </div>

        <p>
            <input type="submit" value="Registrarse" class="btn" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Regresar", "Details") %>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
    <%: Scripts.Render("~/bundles/jqueryval") %>
</asp:Content>
